package com.ruoyi.box.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.box.mapper.BoxMapper;
import com.ruoyi.box.domain.Box;
import com.ruoyi.box.service.IBoxService;

/**
 * boxService业务层处理
 * 
 * @author zyyx
 * @date 2025-05-20
 */
@Service
public class BoxServiceImpl implements IBoxService 
{
    @Autowired
    private BoxMapper boxMapper;

    /**
     * 查询box
     * 
     * @param boxId box主键
     * @return box
     */
    @Override
    public Box selectBoxByBoxId(Long boxId)
    {
        return boxMapper.selectBoxByBoxId(boxId);
    }

    /**
     * 查询box列表
     * 
     * @param box box
     * @return box
     */
    @Override
    public List<Box> selectBoxList(Box box)
    {
        return boxMapper.selectBoxList(box);
    }

    /**
     * 新增box
     * 
     * @param box box
     * @return 结果
     */
    @Override
    public int insertBox(Box box)
    {
        return boxMapper.insertBox(box);
    }

    /**
     * 修改box
     * 
     * @param box box
     * @return 结果
     */
    @Override
    public int updateBox(Box box)
    {
        return boxMapper.updateBox(box);
    }

    /**
     * 批量删除box
     * 
     * @param boxIds 需要删除的box主键
     * @return 结果
     */
    @Override
    public int deleteBoxByBoxIds(Long[] boxIds)
    {
        return boxMapper.deleteBoxByBoxIds(boxIds);
    }

    /**
     * 删除box信息
     * 
     * @param boxId box主键
     * @return 结果
     */
    @Override
    public int deleteBoxByBoxId(Long boxId)
    {
        return boxMapper.deleteBoxByBoxId(boxId);
    }
}
